home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / JAVA Utilities / JProxy 1.1.0 / SAMPLES.JAR / com / jproxy / samples / rmi / test / TestImpl.java < prev    next >
Encoding:
Java Source  |  2003-04-29  |  480 b   |  29 lines

  1. package com.jproxy.samples.rmi.test;
  2.  
  3. import java.rmi.*;
  4. import java.rmi.server.UnicastRemoteObject;
  5.  
  6. public class TestImpl
  7.     extends UnicastRemoteObject
  8.     implements TestRmi
  9. {
  10.     public TestImpl()
  11.         throws RemoteException
  12.     {
  13.     }
  14.  
  15.     public long getServerTime()
  16.         throws RemoteException
  17.     {
  18.         long time = System.currentTimeMillis();
  19.         System.out.println(new java.util.Date(time));
  20.         return time;
  21.     }
  22.  
  23.     public byte[] echoBytes(byte[] bytes)
  24.         throws RemoteException
  25.     {
  26.         return bytes;
  27.     }
  28. }
  29.